package com.hl.service;

import com.hl.mapper.ChangePasswordMapper;
import com.hl.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ChangePasswordServiceImpl implements ChangePasswordService {
    @Autowired
    private ChangePasswordMapper changePasswordMapper;
    @Override
    public int changePassword(String password,Integer userId) {
        int num = changePasswordMapper.changePassword(password,userId);
        return num;
    }

    @Override
    public List<Users> SelectUsersAll(Integer userId) {
        return changePasswordMapper.SelectUsersAll(userId);
    }
}
